import { Column, Entity, Index } from 'typeorm'
import { BaseEntity } from './BaseEntity'

@Entity()
export class StudentSubjectRelation extends BaseEntity {

  @Column({ name: 'student_id' })
  @Index({ unique: true })
  public studentId!: number

  @Column({ name: 'subject_id' })
  @Index({ unique: true })
  public subjectId!: number
}
